#if !defined(AFX_DEMANDINFODLG_H__4101B5E0_D888_4C17_8F8D_F818DEA1FCFC__INCLUDED_)
#define AFX_DEMANDINFODLG_H__4101B5E0_D888_4C17_8F8D_F818DEA1FCFC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DemandInfoDlg.h : header file
#include "Resource.h"
//

/////////////////////////////////////////////////////////////////////////////
// CDemandInfoDlg dialog

class CDemandInfoDlg : public CDialog
{
// Construction
public:
	CDemandInfoDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDemandInfoDlg)
	enum { IDD = IDD_DIALOG_DEMANDINFO };
	CButton	m_ctlbtnGoSupply;
	CListCtrl	m_ctlDemandNumberList;
	long	m_lDemandNumber;
	CString	m_strDemandSource;
	CString	m_strDemandContent;
	CString	m_strDemandTitle;
	CString	m_strFind;
	CString	m_strDemandPerson;
	COleDateTime	m_tDemandDate;
	COleDateTime	m_tDemandDateF;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDemandInfoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDemandInfoDlg)
	afx_msg void OnAdd();
	afx_msg void OnClose();
	afx_msg void OnDel();
	afx_msg void OnEdit();
	afx_msg void OnFind();
	afx_msg void OnClickList(NMHDR* pNMHDR, LRESULT* pResult);
	virtual BOOL OnInitDialog();
	afx_msg void OnDate();
	afx_msg void OnNextpage();
	afx_msg void OnPrevpage();
	afx_msg void OnTop();
	afx_msg void OnRefresh();
	afx_msg void OnGosupply();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	_ConnectionPtr m_pConnection;
	_RecordsetPtr m_pRecordset;
//	_CommandPtr m_pCommand;
	void Openset();
	void Closeset();
	void GetEditValue();
	void SetEditValue();
	void SetListColumn();
	void GetListValue(int j);
	void LinkListEdit(int i);

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DEMANDINFODLG_H__4101B5E0_D888_4C17_8F8D_F818DEA1FCFC__INCLUDED_)
